'use strict';
const WXBizDataCrypt = require('./WXBizDataCrypt');

module.exports = {
  makePassword(password) {
    return (password);
  },
  async decodeEncryptedData(appid, sessionKey, encryptedData, iv) {
    const pc = new WXBizDataCrypt(appid, sessionKey);
    const data = pc.decryptData(encryptedData, iv);
    return data;
  },
};
